package system;

// import aws.*; uncomment this when the aws package has something in it

import aws.Machine;
import java.io.IOException;
import java.rmi.RemoteException;

/**
 *
 * @author Pete Cappello
 */
public class Ec2Master extends Master
{
    public Ec2Master() throws RemoteException {}
    
    /* 
     * Start Workers on EC2 machines
     */
    public void startWorkers( int numWorkers, String masterDomainName )
    {
        try
        {
            Machine.startWorkers( masterDomainName, numWorkers );
        }
        catch( Exception exception )
        {
            
        }
    }
    
    public void stopWorkers()
    {
        // for each worker
        {
            // stop EC2 Worker machine;
        }
    }
}
